package top.revery.api.config;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by  revery.top jun
 * Date  2019-12-02 16:05
 */
@Getter
@AllArgsConstructor
public enum ResultType {
    SUCCESS("",0),
    ERROR_SERVICE("服务器错误",500),
    ERROR_AUTHORIZE("授权失败",4001),
    ERROR_TOKENEXPIRED("token过期",4002);

    private int resultCode;
    private String errorMsg;

    ResultType(String errorMsg, int statusCode) {
        this.resultCode = statusCode;
        this.errorMsg = errorMsg;
    }
}
